<layout name="inner"/>
<include file="public/angular"/>
<load href="__PUBLIC__/Common/dist/jquery.form.js"/>

<p>
<a class="uk-button" href="__CONTROLLER__/index">{$Think.lang.back}</a>

<switch name="order_status">
<case value="2|8">
<include file="refund"/>	
</case>
<case value="7">
<include file="cancelRefund"/>	
</case>
<case value="1|3">
<include file="void"/>	
</case>
</switch>
</p>
<table class="uk-table">

<tr><td width=280>#</td><td>
{$order_id} <eq name="ips_id" value="[TEST]">[TEST]</eq>
<eq name="order_isrisk" value="1">
&nbsp;&nbsp;<span class="uk-icon-exclamation-circle uk-text-danger">&nbsp;&nbsp;{$order_risk_desc}</span>
</eq>
</td></tr>
<tr><td>{$Think.lang.merchant_oid}</td><td>
{$mh_oid}
</td></tr>
<tr><td>{$Think.lang.amount}</td><td>
{$order_amount}{$order_currency}
</td></tr>
<tr><td>{$Think.lang.order_time}</td><td>
{$order_time}
</td></tr>
<tr><td>{$Think.lang.status}</td><td>
{$order_status|order_status="true"}&nbsp;<button class="uk-button uk-button-success" data-uk-modal="{target:'#historyModal',center:true}">{$Think.lang.order_history}</button>
</td></tr>



<tr><td>{$Think.lang.billing_desc}</td><td>
{$order_bill_desc}
</td></tr>
<tr><td>{$web_config.web_currency}{$Think.lang.amount}</td><td>
{$base_amount}
</td></tr>

<tr><td>{$Think.lang.creditcard_type}</td><td>
{$card_type}
</td></tr>
<tr><td>{$Think.lang.email}</td><td>
{$bill_email}
</td></tr>
<tr><td>{$Think.lang.country}</td><td>
{$bill_country}
</td></tr>
<tr><td>{$Think.lang.state}</td><td>
{$bill_state}
</td></tr>
<tr><td>{$Think.lang.city}</td><td>
{$bill_city}
</td></tr>
<tr><td>{$Think.lang.street}</td><td>
{$bill_street}
</td></tr>
<tr><td>{$Think.lang.zip}</td><td>
{$bill_zip}
</td></tr>
<tr><td>{$Think.lang.name}</td><td>
{$bill_firstname}&nbsp;{$bill_lastname}
</td></tr>
<tr><td>site_id</td><td>
{$order_siteid}&nbsp;=>&nbsp;{$site_domain}
</td></tr>
<tr><td>{$Think.lang.track_company}</td><td>
{$tk_company} &nbsp;&nbsp;
<button type="button" class="uk-button uk-button-success" data-uk-modal="{target:'#trackModal',center:true}">
{$Think.lang.add_delivery}
</button>
</td></tr>
<tr><td>{$Think.lang.delivery_no}</td><td>
{$dv_number}
</td></tr>
</table>

<!--order history-->
<div class="uk-modal" id="historyModal">
    <div class="uk-modal-dialog"> <a class="uk-modal-close uk-close"></a>
        <div class="uk-modal-header">{$Think.lang.order_history}</div>

<table class="uk-table">
<volist name="history" id="vo">
	<tr><td width=150>{$vo.oh_time}</td><td width=100>{$vo.oh_status|order_status=true}</td><td>
	<switch name="vo.oh_status">
		<case value="7|8"><b>{$Think.lang.refund_amount}:</b>{$vo.oh_origin_amount}{$order_currency}</case>
		<case value="6"><b>{$Think.lang.declined_code}:</b>{$vo.oh_remark}</case>
	</switch>	
	</td></tr>
</volist>

  </table>
    </div>
</div>

<include file="upload"/>

